.class final Lcom/direction/hold/ui/a;
.super Lcn/cheln/support/adapter/c;


# instance fields
.field private synthetic c:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {p0}, Lcn/cheln/support/adapter/c;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Landroid/view/View;Lcn/cheln/support/adapter/ListenerBox;)V
    .locals 7

    const-string v5, "---"

    const-string v6, " "

    invoke-virtual {p2}, Lcn/cheln/support/adapter/ListenerBox;->a()Lcn/cheln/support/adapter/MapAdapter;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;

    move-object v2, p1

    :goto_0
    if-eqz v2, :cond_0

    invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    instance-of v3, v3, Landroid/widget/ListView;

    if-eqz v3, :cond_2

    :cond_0
    if-nez v2, :cond_3

    :cond_1
    :goto_1
    return-void

    :cond_2
    const-string v3, "---"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "---"

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v5, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    goto :goto_0

    :cond_3
    invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    invoke-virtual {v1}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->c()Ljava/util/Map;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    if-eqz v2, :cond_1

    move-object v0, p1

    check-cast v0, Landroid/widget/CheckBox;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v4

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-virtual {v1, v3}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcn/cheln/explorer/beans/FileInfo;

    if-eqz v3, :cond_1

    iget-object v5, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v5, p1, v3, v4}, Lcom/direction/hold/ui/CommonActivity;->a(Landroid/view/View;Lcn/cheln/explorer/beans/FileInfo;Z)Ljava/lang/Boolean;

    move-result-object v4

    if-eqz v4, :cond_1

    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v5

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v1, v2, v5}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->a(IZ)V

    if-eqz v5, :cond_5

    iget-object v2, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    invoke-static {v3}, Lcn/cheln/explorer/actions/OperationUtil;->a(Lcn/cheln/explorer/beans/FileInfo;)V

    :goto_2
    iget-object v2, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v2}, Lcom/direction/hold/ui/CommonActivity;->b()V

    if-eqz v4, :cond_4

    invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_1

    :cond_4
    iget-object v2, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v2, v1}, Lcom/direction/hold/ui/CommonActivity;->a(Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;)V

    iget-object v1, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->i:Landroid/os/Handler;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    const-string v1, ""

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v4, "i ============== "

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, v3, Lcn/cheln/explorer/beans/FileInfo;->path:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    iget-object v3, v3, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    invoke-static {}, Lcn/cheln/explorer/actions/OperationUtil;->d()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_1

    :cond_5
    iget-object v2, p0, Lcom/direction/hold/ui/a;->c:Lcom/direction/hold/ui/CommonActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    invoke-static {v3}, Lcn/cheln/explorer/actions/OperationUtil;->b(Lcn/cheln/explorer/beans/FileInfo;)V

    goto :goto_2
.end method
